package com.qqs.stock.dao;

import com.qqs.stock.exception.UniqueException;

/**
 *
 * 本地内存模拟数据实现,不链接数据库
 *
 */
public class LocalDeductStockDao implements DeductStockDao {
    @Override
    public int selectCountByWareId(long wareId) {
        return 0;
    }

    @Override
    public boolean deduct(long wareId, int count) {
        return false;
    }

    @Override
    public boolean increase(long wareId, int count) {
        return false;
    }

    @Override
    public void insertBill(long orderId, long wareId, int count) throws UniqueException {

    }

    @Override
    public int selectBillCount(long orderId, long wareId) {
        return 0;
    }

    @Override
    public void openTransaction() {

    }

    @Override
    public void submitTransaction() {

    }

    @Override
    public void rollbackTransaction() {

    }
}
